import Mock from "mockjs";
import userApi from "./user"
import staffApi from "./staff"
import config from "../src/config/config"

Mock.setup({
    timeout: '600-800'
})


const allApi = [
    ...userApi,
    ...staffApi
]

// if (config.isMock && config.env !== "production") {
allApi.map((item) => {
    Mock.mock(new RegExp(config.baseURL + item.url), item.type, item.response);
})
// }



export default Mock;